<?php

namespace backend\assets;

use yii\web\AssetBundle;

/**
 * Main backend application asset bundle.
 */
class WenmingAsset extends AssetBundle
{
    public $sourcePath = '@app/assets/wenming';
    public $css = [
    
        'css/style.css',
        'css/font-awesome.css',
        'css/SidebarNav.min.css',
        'css/custom.css',
        'css/owl.carousel.css',
        'css/swfupload.css',

        //日历
        'css/bootstrap-datepicker3.min.css',
    ];
    public $js = [
        'js/echarts.min.js',
        'js/bootstrap.js',
        'js/layer/layer.js',
        'js/classie.js',//控制侧边栏左右滑动
        'js/SidebarNav.min.js',//控制侧边栏菜单下拉效果
        'js/SimpleChart.js',

        //附件上传
        'js/swfupload/swfupload.js',
        'js/swfupload/fileprogress.js',
        'js/swfupload/handlers.js',
        //'js/dialog.js', //没有找到该js
        'js/ajaxupload.js',

        //日历
        'js/bootstrap-datepicker.min.js',
        'js/bootstrap-datepicker.zh-CN.min.js',
        




    ];
    public $jsOptions = [
        'position' => \yii\web\View::POS_HEAD
    ];
    public $depends = [
        
        'yii\bootstrap\BootstrapAsset',
        'yii\web\YiiAsset',
    ];
    //定义按需加载JS方法，注意加载顺序在最后
    public static function addScript($view,$jsfile) 
    {
        $view->registerJsFile($jsfile,[WenmingAsset::className(),'depends'=>'backend\assets\WenmingAsset']);
    }

    //定义按需加载CSS方法，注意加载顺序在最后
    public static function addCss($view,$cssfile)
    {
        $view->registerCssFile($cssfile,[WenmingAsset::className(),'depends'=>'backend\assets\WenmingAsset']);
    }
}
